home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Periodic Tasksƒ / CPPConfirmUsers.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  994 b   |  44 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/17/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPConfirmUsers
  6.     
  7.     SUPERCLASS: CPPPeriodicTask
  8.     
  9.         This C++ class goes through our list of nodes, checking to
  10.         make sure that they are all still on the network.  If 
  11.         they are not, it deletes them from the list.
  12.     
  13. ********************************************************************/
  14.  
  15. #pragma once
  16.  
  17. #include <CPPPeriodicTask.h>
  18.  
  19. class    CPPPTaskManager;
  20. class    CPPConfirmTask;
  21. class    CPPObjectList;
  22.  
  23. class CPPConfirmUsers : public CPPPeriodicTask {
  24.  
  25. public:
  26.                     CPPConfirmUsers (CPPTaskManager *TaskManager, 
  27.                                      long minPeriod = 120, 
  28.                                      Boolean deleteWhenDone = TRUE);
  29.     
  30.                     ~CPPConfirmUsers (void);
  31.         
  32.     virtual    char     *ClassName (void);
  33.  
  34.     virtual    void    DoPeriodicAction (void);
  35.     virtual    void    DoCompletedAction (void);
  36.         
  37.     void            StartConfirmUsers (CompletionProc DoProc);
  38.         
  39. private:
  40.     CPPObjectList    *nodeList;
  41.     CPPConfirmTask    *confirmTask;
  42.     long            whichNode;
  43. };
  44.